﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;

namespace SPPD.model
{
    public class sppdMap : ClassMap<sppd>
    {
        public sppdMap()
        {
            Id(x => x.id_sppd);
            Map(x => x.id_spj);
            Map(x => x.nama_file_sppd);
            Map(x => x.nama_file_spj);
            Map(x => x.status);
            Map(x => x.tujuan);
            Map(x => x.tanggal_pengajuan);
            Map(x => x.tanggal_perjalanan);
            Map(x => x.kepentingan);
            References(x => x.ketua).Cascade.All();
        }
    }
}
